#include<iostream>
#include<string.h>
#include<cmath>
#include<stdio.h>
using namespace std;
int main()
{
    int a,b,c;
    for(a=1;a<=9;a++) 
     for(b=0;b<=9;b++) 
      for(c=0;c<=9;c++)
         if( (100*a+10*b+c)+(100*b+10*c+c) == 532)  cout<<a<<" "<<b<<" "<<c<<endl;
    //system("pause");
    return 0;
}
